<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
    <meta name="author" content="Coderthemes">

    <link rel="shortcut icon" href="images/favicon_1.ico">

    <title> {% block title %}{% endblock %}</title>

    <!-- Base Css Files -->
    <link href="/admin/css/bootstrap.min.css" rel="stylesheet"/>

    <!-- Font Icons -->
    <link href="/admin/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="/admin/assets/ionicon/css/ionicons.min.css" rel="stylesheet"/>
    <link href="/admin/css/material-design-iconic-font.min.css" rel="stylesheet">

    <!-- animate css -->
    <link href="/admin/css/animate.css" rel="stylesheet"/>

    <!-- Waves-effect -->
    <link href="/admin/css/waves-effect.css" rel="stylesheet">
    <!--element-ui -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">

    <!-- Custom Files -->
    <link href="/admin/css/helper.css" rel="stylesheet" type="text/css"/>
    <link href="/admin/css/style.css" rel="stylesheet" type="text/css"/>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
    <script src="/admin/js/modernizr.min.js"></script>
    {% block top_css %}{% endblock %}
    {% block top_script %}{% endblock %}
</head>


<body class="fixed-left">

<!-- Begin page -->
<div id="wrapper">

    <!-- Top Bar Start -->
    <div class="topbar">
        <!-- LOGO -->
        <div class="topbar-left">
            <div class="text-center">
                <a href="index.html" class="logo"><i class="md md-terrain"></i> <span>Moltran </span></a>
            </div>
        </div>
        <!-- Button mobile view to collapse sidebar menu -->
        <div class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="">
                    <div class="pull-left">
                        <button class="button-menu-mobile open-left">
                            <i class="fa fa-bars"></i>
                        </button>
                        <span class="clearfix"></span>
                    </div>
                    <form class="navbar-form pull-left" role="search">
                        <div class="form-group">
                            <input type="text" class="form-control search-bar" placeholder="Type here for search...">
                        </div>
                        <button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button>
                    </form>

                    <ul class="nav navbar-nav navbar-right pull-right">
                        <li class="hidden-xs">
                            <a href="#" id="btn-fullscreen" class="waves-effect waves-light">
                                <i class="md md-crop-free"></i>
                            </a>
                        </li>
                        <li class="dropdown">
                            <a href="" class="dropdown-toggle profile" data-toggle="dropdown" aria-expanded="true">
                                <img src="/admin/images/avatar-1.jpg" alt="user-img" class="img-circle">
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="#"><i class="md md-face-unlock"></i> Profile</a></li>
                                <li><a href="#"><i class="md md-settings"></i> Settings</a></li>
                                <li><a href="#"><i class="md md-lock"></i> Lock screen</a></li>
                                <li><a id="submitLoginOut"><i class="md md-settings-power"></i> 登出</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <!--/.nav-collapse -->
            </div>
        </div>
    </div>
    <div class="left side-menu">
        <div class="sidebar-inner slimscrollleft">
            <div class="user-details">
                <div class="pull-left">
                    <img src="/admin/images/users/avatar-1.jpg" alt="" class="thumb-md img-circle">
                </div>
                <div class="user-info">
                    <div class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">John Doe <span
                                class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">
                                <i class="md md-face-unlock"></i>
                                个人中心
                                <div class="ripple-wrapper"></div>
                            </a></li>
                            <li><a href="#">
                                <i class="md md-settings"></i> 设置</a>
                            </li>
                            <li>
                                <a href="#" id="submitLoginOut1">
                                <i class="md md-settings-power"></i>
                                登出
                                </a>
                            </li>
                        </ul>
                    </div>
                    <p class="text-muted m-0">Administrator</p>
                </div>
            </div>
            <!--- Divider -->
            <div id="sidebar-menu">
                <ul>
                    <li>
                        <a href="/admin" class="waves-effect"><i class="md md-home"></i><span> 仪表盘 </span></a>
                    </li>

                    <li class="has_sub">
                        <a href="#" class="waves-effect">
                            <i class="md md-mail"></i>
                            <span> 文章管理 </span>
                            <span class="pull-right">
                                <i class="md md-add"></i>
                            </span>
                        </a>
                        <ul class="list-unstyled">
                            <li><a href="/admin/article_manage/1">文章列表</a></li>
                            <li><a href="/admin/article_edit">添加文章</a></li>
                            <li><a href="/admin/article_edit_about_me">个人资料</a></li>
                        </ul>
                    </li>

                    <li class="has_sub">
                        <a href="#" class="waves-effect"><i class="md md-mail"></i>
                            <span> 标签管理 </span>
                            <span class="pull-right"><i class="md md-add"></i></span>
                        </a>
                        <ul class="list-unstyled">
                            <li><a href="inbox.html">标签统计</a></li>
                            <li><a href="email-compose.html">添加标签</a></li>
                        </ul>
                    </li>

                    <li class="has_sub">
                        <a href="#" class="waves-effect">
                            <i class="md md-palette"></i>
                            <span> 友链管理 </span>
                            <span class="pull-right"><i class="md md-add"></i></span>
                        </a>
                        <ul class="list-unstyled">
                            <li><a href="/admin/friendLink_manage/1">友链列表</a></li>
                            <li><a href="buttons.html">添加友链</a></li>
                        </ul>
                    </li>

                    <li class="has_sub">
                        <a href="#" class="waves-effect">
                            <i class="md md-invert-colors-on"></i>
                            <span> 评论管理 </span>
                            <span class="pull-right"><i class="md md-add"></i></span>
                        </a>
                        <ul class="list-unstyled">
                            <li><a href="/admin/comment_manage/1">评论列表</a></li>
                            <li><a href="portlets.html">评论删除</a></li>
                            <li><a href="widgets.html">评论回复</a></li>
                        </ul>
                    </li>

                    <li class="has_sub">
                        <a href="#" class="waves-effect">
                            <i class="md md-redeem"></i>
                            <span> 铭感词管理 </span>
                            <span class="pull-right"><i class="md md-add"></i></span>
                        </a>
                        <ul class="list-unstyled">
                            <li><a href="material-icon.html">添加铭感词</a></li>
                            <li><a href="ion-icons.html">删除铭感词</a></li>
                        </ul>
                    </li>

                    <li class="has_sub">
                        <a href="#" class="waves-effect">
                            <i class="md md-now-widgets"></i>
                            <span> 任务管理 </span>
                            <span class="pull-right"><i class="md md-add"></i></span>
                        </a>
                        <ul class="list-unstyled">
                            <li><a href="form-elements.html">添加任务</a></li>
                            <li><a href="form-validation.html">修改任务</a></li>
                        </ul>
                    </li>

                    <li class="has_sub">
                        <a href="#" class="waves-effect">
                            <i class="md md-view-list"></i>
                            <span> 邮件管理 </span>
                            <span class="pull-right"><i class="md md-add"></i></span>
                        </a>
                        <ul class="list-unstyled">
                            <li><a href="tables.html">邮件通知</a></li>
                            <li><a href="table-datatable.html">发送邮件</a></li>
                            <li><a href="tables-editable.html">邮件展示</a></li>
                        </ul>
                    </li>

                    <li class="has_sub">
                        <a href="#" class="waves-effect">
                            <i class="md md-poll"></i>
                            <span> 用户管理 </span>
                            <span class="pull-right"><i class="md md-add"></i></span>
                        </a>
                        <ul class="list-unstyled">
                            <li><a href="morris-chart.html">用户列表</a></li>
                        </ul>
                    </li>

                </ul>
                <div class="clearfix"></div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <div class="content-page">
        <div class="content">
            <div class="container">
                {% block content %} {% endblock %}
            </div>
        </div>
        <footer class="footer text-right">
            2015 © Moltran.
        </footer>
    </div>
</div>
<script>
    var resizefunc = [];
</script>
<script src="/admin/js/jquery.min.js"></script>
<script src="/admin/js/bootstrap.min.js"></script>
<script src="/admin/js/waves.js"></script>
<script src="/admin/js/wow.min.js"></script>
<script src="/admin/js/jquery.nicescroll.js" type="text/javascript"></script>
<script src="/admin/js/jquery.scrollTo.min.js"></script>
<script src="/admin/assets/jquery-detectmobile/detect.js"></script>
<script src="/admin/assets/fastclick/fastclick.js"></script>
<script src="/admin/assets/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="/admin/assets/jquery-blockui/jquery.blockUI.js"></script>
<script src="/common/js/axios.min.js"></script>
<script src="/common/js/vue2.6.min.js"></script>
<script src="/common/js/request.js"></script>
<script src="/common/element-ui/index.js"></script>
{% block bottom_js %}{% endblock %}
{% block bottom_script %}{% endblock %}
<script src="/admin/js/jquery.app.js"></script>
<script>
    $("#submitLoginOut").click(
        function () {
            request({
                url: baseUrl + "/api/login/out",
                method: 'get'
            }).then((response) => {
                if (response.code === 200) {
                    window.location.href = "/"
                }
            }).catch(function (error) {
                console.log(error);
            });
        });
    $("#submitLoginOut1").click(
        function () {
            request({
                url: baseUrl + "/api/login/out",
                method: 'get'
            }).then((response) => {
                if (response.code === 200) {
                    window.location.href = "/"
                }
            }).catch(function (error) {
                console.log(error);
            });
        });
</script>
</body>
</html>